package stu.xjtu.subject.domain.convert;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import stu.xjtu.subject.domain.entity.SubjectCategoryBO;
import stu.xjtu.subject.infra.basic.entity.SubjectCategory;

import java.util.List;

@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> convertToCategoryBOList(List<SubjectCategory> subjectCategoryList);

}
